package com.itheima02.day06;

import java.util.Arrays;

/**
 * @author 刘全
 * @date 2021/7/22
 */
public class ArraysTest {
    public static void main(String[] args) {
        int[] arr = {8, 3, 4, 0, 1, 7, 6, 9};
        int index = Arrays.binarySearch(arr,6);
        System.out.println(index);
        Arrays.sort(arr);
        System.out.println(Arrays.toString(arr));
    }
}
